import os
import sys

from setuptools import setup, find_packages

here = os.path.abspath(os.path.dirname(__file__))

requires = [
    'repoze.bfg',
    'repoze.tm2',
    'sqlalchemy',
    'zope.sqlalchemy',
    'simplejson',
    'Babel'
    ]

if sys.version_info[:3] < (2,5,0):
    requires.append('pysqlite')

setup(name='hurryoff.web',
      version='0.0',
      description='hurryoff web',
      long_description='Hurryoff web',
      classifiers=[
        "Programming Language :: Python",
        "Framework :: BFG",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
        ],
      author='Sergii Koshel',
      author_email='s.s.koshel@gmail.com',
      url='hurryoff.com',
      message_extractors = { 'hurryoff/web/' :
                                    [
                                      ('**.py', 'chameleon_python', None ),
                                      ('**.pt', 'chameleon_xml', None ),
                                    ]},
      keywords='web wsgi bfg',
      packages=find_packages(),
      include_package_data=True,
      package_data={'hurryoff.web' : ['configure.zcml', 'templates/*.pt', 'templates/static/**/*.*']},
      zip_safe=False,
      install_requires = requires,
      tests_require = requires,
      test_suite="hurryoff.web",
      entry_points = """\
      [paste.app_factory]
      app = hurryoff.web.run:app
      """
      )

